package com.zsx.shopping.seckill.converter;

import com.zsx.shopping.seckill.redis.RedisSeckillSku;
import com.zsx.shopping.seckill.vo.app.CurSeckillSkuVO;
import com.zsx.shopping.seckill.vo.app.SeckillGoodsVO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface SeckillSkuConverter {

    CurSeckillSkuVO toCurSeckillSkuVO(RedisSeckillSku redisSeckillSku);

    List<CurSeckillSkuVO> toCurSeckillSkuVOs(List<RedisSeckillSku> redisSeckillSkus);

    SeckillGoodsVO toSeckillGoodsVO(RedisSeckillSku redisSeckillSku, Integer curCount);
}
